package com.xu.mapper;

import com.xu.pojo.Detail;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface DeMapper {

@Select(" delete from reply_detail where invid = #{id}")
//    删除
    int delReply(Integer id);
@Select("        insert into reply_detail(invid,content,author,createdate) values(#{invid},#{content},#{author},#{createdate})")
//添加回复
    int addReply(Detail reply_detail);
}
